
import { observable,action,computed } from "mobx";
import resolve from "resolve";

class Coupon{
    @observable tabDataAll = 123231//所有数据

    @action
    updateTabData(){//更新表格数据
        // return new Promise((resolve,reject)=>{
            // resolve(
                console.log(1)
               this.tabDataAll =  [
                {'youhuijuan':'hahahha','type':'hahahha','money':99,'moneyXiaXian':99,'faFangNum':99,'shiyongdate':99},
                {'youhuijuan':'hahahha','type':'hahahha','money':99,'moneyXiaXian':99,'faFangNum':99,'shiyongdate':99},
                {'youhuijuan':'hahahha','type':'hahahha','money':99,'moneyXiaXian':99,'faFangNum':99,'shiyongdate':99},
                {'youhuijuan':'hahahha','type':'hahahha','money':99,'moneyXiaXian':99,'faFangNum':99,'shiyongdate':99},
                {'youhuijuan':'hahahha','type':'hahahha','money':99,'moneyXiaXian':99,'faFangNum':99,'shiyongdate':99},
                {'youhuijuan':'hahahha','type':'hahahha','money':99,'moneyXiaXian':99,'faFangNum':99,'shiyongdate':99}
            ]
            // )
        // }).then(data=>{
        //     console.log(data)
        // })
    }

    @computed
    pageData(){
        return this.tabDataAll
    }
}

export default Coupon